package com.ruoyi.sl.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 扣款记录对象 sl_deduction
 * 
 * @author admin
 * @date 2024-07-05
 */
public class SlDeduction extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long deductionId;

    /** 扣款单ID */
    @Excel(name = "扣款单ID")
    private Long dmId;

    /** 报工单ID */
    @Excel(name = "报工单ID")
    private Long rfworkId;

    /** 报工项ID */
    @Excel(name = "报工项ID")
    private Long rworkId;

    /** 用户 */
    @Excel(name = "用户")
    private String memberUser;

    /** 用户昵称 */
    @Excel(name = "用户昵称")
    private String memberNick;

    /** 金额 */
    @Excel(name = "金额")
    private BigDecimal dmAmount;

    /** 是否结算0已结算1未结算 */
    @Excel(name = "是否结算0已结算1未结算")
    private String isSettle;

    /** 扣款原因 */
    @Excel(name = "扣款原因")
    private String dmReason;

    /** 扣款时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "扣款时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date dmTime;

    public void setDeductionId(Long deductionId) 
    {
        this.deductionId = deductionId;
    }

    public Long getDeductionId() 
    {
        return deductionId;
    }
    public void setDmId(Long dmId) 
    {
        this.dmId = dmId;
    }

    public Long getDmId() 
    {
        return dmId;
    }
    public void setRfworkId(Long rfworkId) 
    {
        this.rfworkId = rfworkId;
    }

    public Long getRfworkId() 
    {
        return rfworkId;
    }
    public void setRworkId(Long rworkId) 
    {
        this.rworkId = rworkId;
    }

    public Long getRworkId() 
    {
        return rworkId;
    }
    public void setMemberUser(String memberUser) 
    {
        this.memberUser = memberUser;
    }

    public String getMemberUser() 
    {
        return memberUser;
    }
    public void setMemberNick(String memberNick) 
    {
        this.memberNick = memberNick;
    }

    public String getMemberNick() 
    {
        return memberNick;
    }
    public void setDmAmount(BigDecimal dmAmount) 
    {
        this.dmAmount = dmAmount;
    }

    public BigDecimal getDmAmount() 
    {
        return dmAmount;
    }
    public void setIsSettle(String isSettle) 
    {
        this.isSettle = isSettle;
    }

    public String getIsSettle() 
    {
        return isSettle;
    }
    public void setDmReason(String dmReason) 
    {
        this.dmReason = dmReason;
    }

    public String getDmReason() 
    {
        return dmReason;
    }
    public void setDmTime(Date dmTime) 
    {
        this.dmTime = dmTime;
    }

    public Date getDmTime() 
    {
        return dmTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("deductionId", getDeductionId())
            .append("dmId", getDmId())
            .append("rfworkId", getRfworkId())
            .append("rworkId", getRworkId())
            .append("memberUser", getMemberUser())
            .append("memberNick", getMemberNick())
            .append("dmAmount", getDmAmount())
            .append("isSettle", getIsSettle())
            .append("dmReason", getDmReason())
            .append("dmTime", getDmTime())
            .toString();
    }
}
